﻿<%@ Page Title="" Language="C#" MasterPageFile="~/HomePage.Master" AutoEventWireup="true"
    CodeBehind="Chi-Tiet-Chuyen-Muc.aspx.cs" Inherits="UserKTXD.Chi_Tiet_Chuyen_Muc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>
        <asp:Literal ID="litTieuDe" runat="server"></asp:Literal></title>
    <asp:Literal ID="litDeception" runat="server"></asp:Literal>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Repeater ID="rptBaiViet" runat="server">
        <ItemTemplate>
            <article class="post">
					<h2 class="entry-title">
						<span class="the_title"><%# Eval("TieuDe") %></span>
						<span class="entry-cat">
                        <asp:HyperLink ID="linkCate" runat="server" NavigateUrl='<%# Request.Params["idSubChuyenMuc"] == null ? "~/Blog/" + GetTieuDe(GetTenLoaiChuyenMuc(Eval("IdLoaiChuyenMuc"))) + "_" + Eval("IdLoaiChuyenMuc") + ".aspx" : "~/SubChuyenMuc/" + GetTieuDe(GetTenSubChuyenMuc(Eval("IdSubChuyenMuc"))) + "_" + Eval("IdSubChuyenMuc") + ".aspx" %>'><%# Request.Params["idSubChuyenMuc"] == null ? GetTenLoaiChuyenMuc(Eval("IdLoaiChuyenMuc")) : GetTenSubChuyenMuc(Eval("IdSubChuyenMuc")) %></asp:HyperLink>
                        </span>
					</h2>
					<div class="entry-meta row-fluid">
						<ul class="clearfix">
							<li><asp:Image ID="imgavatar" runat="server" ImageUrl="~/Images/gravatar.png" height="15" width="15" /><%# Request.Params["idSubChuyenMuc"] == null ? "" : GetTenTacGia(Eval("IdTacGia"))%></li>
							<li><asp:Image ID="imgtimer" runat="server" ImageUrl="~/Images/time.png" alt="" /><%# Convert.ToDateTime(Eval("NgayCapNhat")).ToString("dd/MM/yyyy")%></li>
							<li><asp:Image ID="imgLuotXem" runat="server" ImageUrl="~/Images/view-bg.png" alt="" /><%# Eval("LuotXem") %></li>
							<li><asp:Image ID="imgComment" runat="server" ImageUrl="~/Images/komen.png" alt="" /><a href="#" title="Comment">0 Comment</a></li>
							<li class="tagz"><asp:Image ID="imgaTag" runat="server" ImageUrl="~/Images/tags-icon.png" alt="" /><%# GetTag(Eval("Id")) %><br /></li>
						</ul>
					</div>
					<div class="entry-content">
						
						<p><%# Server.HtmlDecode(Eval("NoiDung").ToString())%></p>
					</div>
				</article>
        </ItemTemplate>
    </asp:Repeater>
</asp:Content>
